<?php

class tags {

	var $zam;

	#============================
	# HTML refresh
	#============================
	function refresh($url, $timeout=2)
	{
		return "<meta http-equiv=\"refresh\" content=\"$timeout; url={$this->zam->url}$url\" />\n";
	}
	
	#============================
	# Stylesheet
	#============================
	function stylesheet($file)
	{
		return "<link href=\"{$this->zam->url}html/{$file}\" type=\"text/css\" media=\"screen\" rel=\"stylesheet\" />\n";
	}
	
	#============================
	# JavaScript includes
	#============================
	function script($external, $source='')
	{
		if ( !empty($external) )
		{
			$src = $this->zam->url . "includes/js/$external";
			return "<script language=\"javascript\" src=\"$src\"></script>\n";
		}
		else
		{
			return "<script language=\"javascript\">\n$source\n</script>\n";
		}
	}	
	
}

?>